if(errorFoundNodeArray.length==3){alerttext=returnFieldName(errorFoundNodeArray[0])+", "+returnFieldName(errorFoundNodeArray[1])+" and "+returnFieldName(errorFoundNodeArray[2]);}
else if(errorFoundNodeArray.length==2){alerttext=returnFieldName(errorFoundNodeArray[0])+" and "+returnFieldName(errorFoundNodeArray[1]);}